// 相册页面
import request from '../request/request';

// 获取景区图片
export const getScenicImages = (scenicId) => {
  return request({
    url: '/img/img_class',
    method: 'post',
    data: {
      scenic_id: scenicId
    }
  });
};

// 获取景区门票
export const getScenicTickets = (scenicId) => {
  return request({
    url: '/Ticketing/index',
    method: 'post',
    data: {
      scenic_id: scenicId
    }
  });
};


// 创建订单
export const createOrder = (orderData, userId) => {
  return request({
    url: '/order/add',
    method: 'post',
    data: orderData,
    headers: { id: userId }
  });
};